using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Ricciolo.PaperBoy.Feeds;

namespace Ricciolo.PaperBoy.UI
{

    public partial class FeedSettingsForm : System.Windows.Window
    {
        private FeedSettings fs;

        public FeedSettingsForm(FeedSettings fs)
        {
            InitializeComponent();

            this.fs = fs;
            this.DataContext = fs;

            this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, new ExecutedRoutedEventHandler(OnCloseExecuted)));
        }

        void OnCloseExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }

    
}